]> dgit.raspbian.org Git - gnome-shell.git/commit
appDisplay: Slide page hints along page switching
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 23 Feb 2021 16:44:23 +0000 (17:44 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 2 Mar 2021 22:02:56 +0000 (22:02 +0000)
commitec223f31d98bd6e6026ab3ef7f3ad5a7e5ef0ca2
treed9f985a46772544d28e21216ff896a8e10ada923
parent9e5b357b0b6b12d84be338be2944f01ad1f7fe51
appDisplay: Slide page hints along page switching

When clicking on the page hints, the hint rectangles being visible
in place and not moving together with the page is a bit too
distracting.

Since the page hints are not part of the iconGrid hierarchy and
we have just 2 general ones for prev/next page (i.e. no page
associated), do this sliding via some smoke and mirrors: We don't
slide the page hints, but a parent container for both of them, and
we also control opacity so that the container is fully transparent
mid-page. At the point it is transparent, the container can be
snapped to the other side of the page, and faded back in as it
slides together with it, so it always looks like it goes away and
comes from the right sides.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1630>
js/ui/appDisplay.js